using fwt
using gfx
using swtChartWrapper

class Example4
{
  public static Void main ()
  {
    // define the series of data points to display
    series1 := LineSeries
    {
      label = "line series 1"
      points = [1.2f, 3.4f, 3.1f, 0.1f, 0.6f]
      enableArea = true
    }
    series2 := LineSeries
    {
      label = "line series 2"
      points = [0.1f, 0.3f, 0.7f, 1.5f, 2.6f]
      lineColor = Color.red
      enableArea = true
    }
    // define a window to display the chart in
    Window
    {
      title = "Example Chart"
      size = Size(450, 350)
      Chart
      {
        title.text = "Area Chart Example"
        xAxis.title.text = "X Series"
        yAxis.title.text = "Y Series"
        data = [series1, series2]
      },
    }.open
  }
}
